import request from '@/utils/request'
import equipment from './equipment'
export default {
  index() {
    return request({
      url: '/admin/equipment_group/index',
      method: 'get'
    })
  },
  info(id) {
    return request({
      url: '/admin/equipment_group/info',
      method: 'get',
      params: {
        id
      }
    })
  },
  equipment() {
    return equipment.select()
  },
  append(data) {
    return request({
      url: '/admin/equipment_group/append',
      method: 'post',
      data
    })
  },
  remove(id) {
    return request({
      url: '/admin/equipment_group/remove',
      method: 'get',
      params: {
        id
      }
    })
  },
  create(data) {
    return request({
      url: '/admin/equipment_group/create',
      method: 'post',
      data
    })
  },
  update(data) {
    return request({
      url: '/admin/equipment_group/update',
      method: 'post',
      data
    })
  },
  delete(id) {
    return request({
      url: '/admin/equipment_group/delete',
      method: 'get',
      params: {
        id
      }
    })
  }

}
